
import { ref } from "vue"
import type pageContent from "@/components/page-content/page-content.vue"
function usePageContent(){
  // setup相同逻辑的抽取hooks
const contentRef = ref<InstanceType<typeof pageContent>>()
// 点击搜索
function handleQueryClick(queryInfo: any) {
  contentRef.value?.fetchPageListDate(queryInfo)
}
// 重置
function handleResetClick() {
  contentRef.value?.fetchPageListDate()
}
return {
  contentRef,
  handleQueryClick,
  handleResetClick
}
}
export default usePageContent
